package com.my.lists;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @author marshal
 * @version 2021-06-02
 */
public class ListTest {
    public static void main(String[] args) {
//        var nums = List.of(1, 2, 3, 4, 5);
//        var nums2 = List.of(1, 2,3);
//        System.out.println(nums.equals(nums2));
//
//        var strList = new String[]{"abc", "cde", "aaa", "abb"};
//        Arrays.sort(strList);
//        System.out.println(Arrays.toString(strList));
//        var nums = new ArrayList<>();
//        for (int i = 1; i <= 10; i++) {
//            nums.add(i);
//        }
//        System.out.println(nums);
//        System.out.println(nums.contains(10));

        var nullList = new ArrayList<>();
        nullList.forEach(System.out::println);
    }
}
